﻿// copyright @ 2009 Farida
using System;
using System.Collections.Generic;
using System.Text;
using MySql.Data.MySqlClient;

public class ConnectToDbClass
{
    public static MySqlConnection ConnectDb()
    {
        // Create a MySql Connection 

        
          
            MySqlConnection connection = new MySqlConnection("server=localhost;database=epoms;uid=root;");
            Console.WriteLine("Server Connected");

            //connection.Open();
            return connection;
                      

                  
    }
}

        
   

   


